package day12.task;

import java.util.Scanner;

public class taskTwo {
    public static void main(String[] args) {
        int score;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入分数");
        score = sc.nextInt();try {
            if(score>100){
                throw new MyException("请正确输入成绩信息");
            }else{
                System.out.println("您的成绩为"+score);
            }
        }catch (MyException e){
            System.out.println(e.getMessage());
        }

    }
}

class MyException extends Exception {
    public MyException() {
        super();
    }

    public MyException(String message) {
        super(message);
    }
}
